package common

var (
	AuthorizationHeader = "authorization:"
	AuthorizationPrefix = "Bearer "
	AuthUserHeader = "auth:user:"
	ExpireTime = 12 * 60 * 60
	BaseFileURI = "/var/file/"
	MaxFileSize = 10 * 1024 * 1024
	AcceptFileSuffix = []string{".jpg",".png",".jpeg",".jfif"}

	AcceptExcelSuffix = []string{".xlsx",".xlam",".xlsm",".xltx"}

	SuperAdminId = 1
	ContextAuth = "auth"

	OPR_SELECT = "select"
	OPR_INSERT = "insert"
	OPR_UPDATE = "update"
	OPR_DELETE = "delete"

	NORMAL_STATUS = "0"
	STOPPED_STATUS = "1"

	DELETED_FLAG = "2"
	EXIST_FLAG = "0"

	DOCUMENT_TYPE = "D"
	MENU_TYPE = "C"
	BUTTON_TYPE = "F"

	ALL_SCOPE = "1"
	AUTO_SCOPE = "2"
	ONLY_DEPT_SCOPE = "3"
	INCLUDE_LOW_DEPT_SCOPE = "4"

	SYSTEM_UT = "00"
	ENROLL_UT = "01"
)

var (
	PhoneFormat = `^1([38][0-9]|14[579]|5[^4]|16[6]|7[1-35-8]|9[189])\d{8}$`
	EmailFormat = `^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+.[a-zA-Z]{2,}$`
	UserFormat = `^[a-zA-Z0-9_-]{4,16}$`
	PasswordFormat = `^[a-zA-Z0-9_-]{6,16}$`
)